<template> 
    <!-- table区域-begin -->
    <div>
      <a-config-provider>
        <template  #renderEmpty>
          <!-- <div style="text-align: center">
            <a-icon type="smile" style="font-size: 20px" />
            <p>Data Not Found</p>
          </div> -->
        </template>
        <div class="config-provider">     
          <a-table
            ref="userTable"
            size="middle"
            bordered  
            rowKey="cusId"         
            class="j-table-force-nowrap"
            style="padding-top: -20px"          
            :columns="columns"
            :pagination="false" 
            :actionButton="false"
            :dataSource="dataSource"
            :loading="loading"
          >
          </a-table> 
        </div>
      </a-config-provider> 
      
    </div>  
</template>

<script>

  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import { getAction} from '@/api/manage'
  import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  import '@/assets/less/TableExpand.less'

  export default {
    name: "ChgUniteFeesUser",
    mixins:[JeecgListMixin],
    components: {
      
    },
   
    data () {
      return {
        description: '统一收费-用户列表',
         // 表头
        columns: [
          // {
          //   title: '#',
          //   dataIndex: '',
          //   key:'rowIndex',
          //   width:60,
          //   align:"center",
          //   customRender:function (t,r,index) {
          //     return parseInt(index)+1;
          //   }
          // },
          {
            title:'用户号',
            align:"center",
            dataIndex: 'code'
          },
          {
            title:'用户名',
            align:"center",
            dataIndex: 'name'
          },
          {
            title:'地址',
            align:"center",
            dataIndex: 'address'
          },
          {
            title:'用水性质',
            align:"center",
            dataIndex: 'natureName'
          }          
        ],        
        url: {
          list: "/chg/chgArrears/ufuList", 
        },
        dictOptions:{},
        dataSource:[],
      
      }
    },
    created() {
    
    },  
    methods: {
      initDictConfig(){
      },
      loadUserData(data){
        if(data){
          this.dataSource=data;
        }else{
           this.dataSource=[];
        }
      },
      getUserData(){
        return this.dataSource;
      }
    }
  }
</script>
<style scoped>
  @import '~@assets/less/common.less';
  .feeInput{
    width: 100px;
  }
 .ant-card .ant-card-body{
    padding-top: 0px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 0px;
  }
</style>